std::cbrt
From cppreference.com
| Defined in header <cmath>
|
||
| float cbrt( float arg ); |
(since C++11) | |
| double cbrt( double arg ); |
(since C++11) | |
| long double cbrt( long double arg ); |
(since C++11) | |
| double cbrt( Integral arg ); |
(since C++11) | |
Computes cubic root of arg.
Contents |
[edit] Parameters
| arg | - | value of a floating-point or Integral type |
[edit] Return value
Cubic root of arg.
[edit] Example
Run this code
Output:
3.000000 1.000000 5.000000 -0.500000
[edit] See also
| computes square root (√x) (function) | |
| raises a number to the given power (xy) (function) | |
| C documentation for cbrt
| |